<?php
require_once("include/auth.php");


$currentUser = current_user();
//if ($currentUser){
    $dept_id = $_GET['dept_id'];
    $courses = getCourse($dept_id);

    header('Cache-Control: no-cache, must-revalidate');
    header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
    header('Content-type: application/json');

    echo json_encode($courses);
//}

